﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WuDada.Core.Post.Domain;

namespace WuDada.Core.Post.Persistence
{
    public interface ITagDao
    {
        /// <summary>
        /// 新增Tag
        /// </summary>
        /// <param name="tagVO">被新增的Tag</param>
        /// <returns>新增後的Tag</returns>
        TagVO CreateTag(TagVO tagVO);

        /// <summary>
        /// 取得Tag By TagId
        /// </summary>
        /// <param name="tagId">TagId</param>
        /// <returns>Tag</returns>
        TagVO GetTagById(int tagId);

        /// <summary>
        /// 刪除Tag
        /// </summary>
        /// <param name="tagVO">被刪除的Tag</param>
        void DeleteTag(TagVO tagVO);

        /// <summary>
        /// 更新Tag
        /// </summary>
        /// <param name="tagVO">被更新的Tag</param>
        /// <returns>更新後的Tag</returns>
        TagVO UpdateTag(TagVO tagVO);

        /// <summary>
        /// 取得Tag清單
        /// </summary>
        /// <param name="conditions">搜尋條件</param>
        /// <returns>電子Tag清單</returns>
        IList<TagVO> GetTagList(IDictionary<string, string> conditions);

        /// <summary>
        /// 取得Tag數量
        /// </summary>
        /// <param name="conditions"></param>
        /// <returns></returns>
        int GetTagCount(IDictionary<string, string> conditions);
    }
}
